package redis

import "time"

func SetSmsCode(mobile string, code string) {
	key := "sms_" + mobile
	redisClient.Set(key, code, time.Minute*10)
}

func GetSmsCode(mobile string) string {
	key := "sms_" + mobile
	return redisClient.Get(key).Val()
}
func DelSmsCode(mobile string) {
	key := "sms_" + mobile
	redisClient.Del(key)
}
